<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <script>
        function People()
        {
            this.name='trump'
            this.age=76
            this.say=function()
            {
                console.log('say 方法',this.numbers+'是'+this.name);
            }
        }
        People.prototype.buy=function()
        {
            console.log(this.name+'buy下了美国');
        }
        var p1=new People()
            p1.buy()
            console.log(p1);
        console.log('判断prototype 和 __proto__是否相等',People.prototype===p1.__proto__);
    </script>
    
</body>
</html>